QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Class Method Retrieval

A class should retrieve the methods passed in via the metahandler during the registration process, using the Q3ObjectHierarchy_GetMethod object system call.

Q3XObjectHierarchy_GetMethod

Repeated calls to the Q3XObjectHierarchy_GetMethod function return all the methods for a class hierarchy.

TQ3FunctionPointer Q3XObjectHierarchy_GetMethod(
                     TQX3ObjectClass    objectClass,
                     TQ3MethodType       methodType);
objectClass
An object class.
methodType
A method type.

DESCRIPTION

The Q3XObjectHierarchy_GetMethod routine searches for methods, starting from the leaf class and continuing with the parent classes, for a non- NULL method type from a class. If the leaf class returns NULL for the method, its virtual metahandler is called to retrieve a method. This continues with the parent class's virtual metahandler and on up the hierarchy. When no method is found, Q3XObjectHierarchy_GetMethod returns NULL .

Q3XObjectClass_GetMethod

You can use the Q3XObjectClass_GetMethod function to get the methods for a class.

TQ3XFunctionPointer Q3XObjectClass_GetMethod(
                     TQ3XObjectClass    objectClass,
                     TQ3XMethodType     methodType);
objectClass
A class.
methodType
On return, a method type.

DESCRIPTION

The Q3XObjectClass_GetMethod function returns, in the methodType parameter, a method type for the class objectClass. The Q3XObjectClass_GetMethod function searches for non- NULL methods starting from the leaf class and continuing with the parent classes. If the leaf class returns NULL for the method, its virtual metahandler is called to retrieve a method. This continues with the parent class's virtual metahandler, and on up the hierarchy. If no method is found, Q3XObjectClass_GetMethod returns NULL .


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |